package com.etc.service.impl;

import com.etc.dao.PaymentDao;
import com.etc.entity.Payment;
import com.etc.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;
    @Override
    public List<Payment> findAllPayment() {
        return paymentDao.findAllPayment();
    }

    @Override
    public Payment findById(Integer id) {
        return paymentDao.findById(id);
    }

    @Override
    public List<Payment> findByRoom(Integer id) {
        return paymentDao.findByRoom(id);
    }

    @Override
    public List<Payment> findAllExceed() {
        return paymentDao.findAllExceed();
    }

    @Override
    public List<Payment> findByStatus(Integer status) {
        return paymentDao.findByStatus(status);
    }
}
